import { request } from 'umi'

//点赞接口
export function getArticleLikes(id: string,type:any,path:string) {
    console.log('type',type,path);
    return request(`/api/${path}/${id}/likes`, {
      method: 'POST',
      data:type
    })
  }